/*
 *  CommonDef.h
 *  GREVocab2007
 *
 *  Created by Wallace Wu on 09-1-13.
 *  Copyright 2009 Sonic Solutions. All rights reserved.
 *
 */

/*!
    @defined 
    @abstract   Language definition
    @discussion 
*/

#define VOCWORDLanguageCount                                    2
typedef NSUInteger VOCWORDLanguage;

#define VOC_WORD_LANG_UNKNOWN                                   0x00000000
#define VOC_WORD_LANG_ENGLISH                                   0x00000001
#define VOC_WORD_LANG_SIMPCHI                                   0x00000002


/*!
    @defined 
    @abstract   Word functions definition
    @discussion defines all possible functions of a word
                Nouns	 Verbs	 Adverbs	 Adjectives
                Pronouns	 Conjunctions	 Prepositions	 Interjections
*/

#define VOCWORDFunctionCount                                    8
typedef NSUInteger VOCWORDFunction;

#define VOC_WORD_FUNC_UNKNOWN                                   0x00000000
#define VOC_WORD_FUNC_NOUN                                      0x00000001
#define VOC_WORD_FUNC_VERB                                      0x00000002
#define VOC_WORD_FUNC_ADJ                                       0x00000004
#define VOC_WORD_FUNC_ADV                                       0x00000008
#define VOC_WORD_FUNC_PRON                                      0x00000010
#define VOC_WORD_FUNC_CONJ                                      0x00000020
#define VOC_WORD_FUNC_PREP                                      0x00000040
#define VOC_WORD_FUNC_INTE                                      0x00000080

/*!
    @defined 
    @abstract   This represents an invalid choice during a word test
    @discussion used mainly together with VOCWordTest class
*/

#define VOC_WORD_TEST_INVALID_CHOICE                            NSUIntegerMax
#define VOC_WORD_TEST_INVALID_INDEX                             NSUIntegerMax

#define VOC_DEFAULT_WORDLIST_PATH                                ([[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Dictionaries"])
#define VOC_DEFAULT_FAVORITE_LIST                               [NSString stringWithFormat:@"%@/%@",[[NSBundle mainBundle] resourcePath],@"MyFavorite"]